<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>帮你跑客APP下载</title>
	</head>

	<body>
	<div id="is_weixin" style="display: none;">
		<img src="__PUBLIC__/Invitation/image/app-open.png" style="width: 100%;" />
	</div>
		<script src="__PUBLIC__/Invitation/js/zepto.min.js"></script>
		
		<script type="text/javascript">
			$(function() {
				if (isWeiXin()) {
					$("#is_weixin").show()
				}
				var u = navigator.userAgent,
					app = navigator.appVersion;
				var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
				var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
				console.log(isAndroid);
				if (isAndroid) {
					window.location.href = '__PUBLIC__/Invitation/res/bnpk.apk';
				}
				if (isIOS) {
					window.location.href = 'http://itunes.apple.com/us/app/id1163784706?mt=8';
				}
			});
				function isWeiXin() {
				var ua = window.navigator.userAgent.toLowerCase();
				if (ua.match(/MicroMessenger/i) == 'micromessenger') {
					return true;
				} else {
					return false;
				}
			}
		</script>
	</body>

</html>